body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

header {
    background-color: #2d2d2d;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Make the header stick to the top */
    position: sticky;
    top: 0;
    z-index: 100; /* Ensure it's above other elements */
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.search-bar {
    display: flex;
}

.search-bar input {
    padding: 8px;
    border: none;
    border-radius: 3px 0 0 3px;
}

.search-bar button {
    padding: 8px 12px;
    background-color: #3a3a3a;
    color: white;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.container {
    display: flex;
    padding: 20px;
}

.sidebar {
    width: 200px;
    margin-right: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li a {
    display: block;
    padding: 8px;
    text-decoration: none;
    color: #333;
}

.content {
    flex: 1;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.video-item {
    border: 1px solid #ddd;
    padding: 10px;
    background-color: white;
}

.video-item img {
    width: 100%;
    height: auto;
}

.video-item h3 {
    margin-top: 10px;
    font-size: 16px;
}

/* Styles for the slideshow overlay */
#slideshow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
}

/* ADD: Loading message layer under slideshows */
#slideshow-loading-layer {
    /* Handled in JS for dynamic styling/tween */
}

/* Keep the slideshow container above the loading layer! */
.slideshow-container {
    width: 80%;
    max-width: 800px;
    height: 60%;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-exit-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1001;
}